package com.cloud.entity;

import com.joyoung.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "exception_log")
@AllArgsConstructor
@NoArgsConstructor
public class ExceptionLogEntity extends BaseEntity {
    @Id
    @GeneratedValue(generator = "JDBC", strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "类型:(insert,delete,update)")
    private String type;

    @ApiModelProperty(value = "表名")
    private String tableName;

    @ApiModelProperty(value = "实体类json体")
    private String body;

    @ApiModelProperty(value = "重试次数")
    private Integer retry;

    @ApiModelProperty(value = "重试次数")
    private String message;
}
